package moe.bogos.douro.api.common;

import moe.bogos.douro.api.DouroAPI;
import moe.bogos.douro.api.common.soul.Soul;
import moe.bogos.douro.api.common.soul.skill.Skill;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.registries.IForgeRegistry;
import net.minecraftforge.registries.RegistryBuilder;

@Mod.EventBusSubscriber(modid = DouroAPI.MODID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class DARegisties
{
    public static IForgeRegistry<Skill> SKILL;
    public static IForgeRegistry<Soul> SOUL;
    
    @SubscribeEvent
    public static void onRegisterRegistry(final RegistryEvent.NewRegistry event)
    {
        SKILL = new RegistryBuilder<Skill>()
                .setName(new ResourceLocation(DouroAPI.MODID,"skill"))
                .setType(Skill.class)
                .create();
        SOUL = new RegistryBuilder<Soul>()
                .setName(new ResourceLocation(DouroAPI.MODID,"soul"))
                .setType(Soul.class)
                .create();
    }
}
